package com.jack.payment.dao.setting;

import com.jack.payment.entity.generate.setting.SettingRuleModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SettingRuleDao {
    /**
     * 获取所有的系统规则
     * @return
     */
    List<SettingRuleModel> getSettingRuleList();

    /**
     * 获取指定名称的系统规则
     * @param name
     * @return
     */
    SettingRuleModel getAppointNameSettingRule(@Param("name") String name);

    /**
     * 修改指定的系统配置
     * @param settingRuleModel
     * @return
     */
    boolean updateAppointNameSettingRule(SettingRuleModel settingRuleModel);
}
